/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package generics.questions;

import java.util.LinkedList;
import javax.lang.model.element.Element;

public class Library <T>{
    
    private LinkedList<T> dataStorage = new LinkedList<>();
    
    public void addToDataStorage(T element){
        dataStorage.add(element);
    }
    
    public void removeFromDataStorage(int index){
        dataStorage.remove(index);        
    }
    
    public T getItem(int index){
        return dataStorage.get(index);
    }
}
